<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../lib/vue.js"></script>
</head>
<body>
    <div>
        <h1>{{str}}</h1>
    </div>
    <div>
        <h1>{{str}}</h1>
    </div>
</body>
<script>
    // 只会将第一个家客户条件的元素作为挂载元素
    new Vue({
        el:"div",
        data:{
            str:"one"
        }
    })
</script>
</html>
